//Copyright (c) 2012 The cwkshell Authors. All rights reserved. 
// Use of this source code is governed by a BSD-style license that can be 
// found in the LICENSE file. 
#ifndef CUC_CWKSHELL_BROWSER_SHELL_PROTOCOL_HANDLER_H_ 
#define  CUC_CWKSHELL_BROWSER_SHELL_PROTOCOL_HANDLER_H_ 
#include "net/url_request/url_request_job_factory.h"
 
namespace cuc{ 
	namespace shell{ 

		class ShellWebUIDataManager;

		class ShellProtocolHandler
			: public net::URLRequestJobFactory::ProtocolHandler {
		public:
			explicit ShellProtocolHandler(ShellWebUIDataManager* shell_webui_data_manager);
			virtual ~ShellProtocolHandler();

			virtual net::URLRequestJob* MaybeCreateJob(
				net::URLRequest* request, net::NetworkDelegate* network_delegate) const OVERRIDE;

		private:

			ShellWebUIDataManager* shell_webui_data_manager_;
			DISALLOW_COPY_AND_ASSIGN(ShellProtocolHandler);
		};
	} //namespace shell 
} //namespace cuc 
#endif //CUC_CWKSHELL_BROWSER_SHELL_PROTOCOL_HANDLER_H_ 
